import {useStore} from "vuex";

import store from '@/store/store.js'

export function validValue(value) {
    return !(typeof value === 'undefined' || value === null || value === '')
}

export function showLoading() {
    store.commit("sys/showLoading")
}

export function hideLoading() {
    store.commit("sys/hideLoading")
}